import request from '@/utils/request';
import {InstanceDelete, KInstanceClone} from './data.d';

export async function queryInstances() {
  return request('/api/v1/kconfig/instances');
}

export async function cloneInstance(params: KInstanceClone) {
  return request('/api/v1/kconfig/instance', {
    method: 'POST',
    data: {
      ...params
    },
  });
}


export async function removeInstance(params: InstanceDelete) {
  return request('/api/v1/kconfig/instance/delete', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}

